package com.our.learning.infrastructure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 学生答卷
 * @author : Ice'Clean
 * @date : 2023-06-06
 */
@TableName("t_answer_sheet")
public class AnswerSheet {
    /** 答卷 ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 考试  ID */
    private Integer examId;
    /** 试卷 ID（向查询冗余） */
    private Integer paperId;
    /** 学生 ID */
    private Integer studentId;
    /** 总分 */
    private Integer score;
    /** 批改状态（0-未交卷，1-已交卷，2-未批改、3-已批改） */
    private Integer checked;
    /** 首次提交时间 */
    private String createTime;
    /** 最后一次提交时间 */
    @TableField(update = "now()")
    private String updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }
}
